﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UAgentMacStockListCheckReportDetail.aspx.cs" Inherits="IHISCETeim.Web.MachineSys.UserModel.UAgentMacStockListCheckReportDetail" %>

<form id="form1" runat="server" >
   <div>
    <table width="100%" >
        <tr>
                <td width="33%" valign="top" >
                    <h1  style=" line-height:20px;" >1.需点检机号及次数</h1>
                    <div  >
                    <asp:repeater id="rpMenu1" runat="server">
                        <HeaderTemplate>
                        <table class="table" width="100%" layouth="40" >
                         <thead>
                         <tr  >  
                            <th >
                                机号
                            </th>                
                            <th width="80">
                                需点检次数
                            </th> 
                            <th width="120">
                                已点检次数
                            </th>                
                        </tr>
                        </thead>
                        <tbody>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr onclick="uamslr_tr_click($(this))" showclass="<%# Eval("SerialNumber")%>">
				                <td><%# Eval("SerialNumber")%></td>
				                <td><%# Eval("d1")%></td>
                                <td><%# Eval("d2")%></td>
			                </tr>
                        </ItemTemplate>
                        <FooterTemplate>
                            </tbody>
                         </table>
                        </FooterTemplate>
                    </asp:repeater>
                    </div>
                </td>
                <td width="33%" valign="top" class="umslrd_showsn_table" >
                    <h1 style=" line-height:20px;">2.对需点检机号进行点检的列表</h1>
                    <div >
                    <asp:repeater id="rpMenu2" runat="server">
                        <HeaderTemplate>
                        <table class="table"  width="100%" layouth="40">
                            <thead>
                            <tr  > 
                            <th >
                                机号
                            </th>                
                            <th width="80">
                                点检时间
                            </th> 
                                        
                        </tr>
                    </thead>
                            <tbody>
                            </HeaderTemplate>
                            <ItemTemplate>
                               <tr   class="umslrd_showsn <%# Eval("SerialNumber")%>">
				               
				                <td><%# Eval("SerialNumber")%></td>
				                <td><%# Eval("CheckDate")%></td>
                                
			                </tr>
                            </ItemTemplate>
                            <FooterTemplate>
                                </tbody>
                             </table>
                            </FooterTemplate>
                        </asp:repeater>
                    </div>
                </td>
                <TD width="33%" valign="top"  class="umslrd_showsn_table">
                    <h1 style=" line-height:20px;">3.所有点检的列表(<%=Convert.ToDateTime(FromDate).Month%>月份)</h1>
                     <div>
                    <asp:repeater id="rpMenu3" runat="server">
                        <HeaderTemplate>
                        <table class="table" width="100%"  layouth="40">
                        <thead>
                            <tr  >                
                               
                                <th >
                                    机号
                                </th>                
                                <th width="80">
                                    点检时间
                                </th> 
                                             
                            </tr>
                        </thead>
                        <tbody>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr target="sid_user" class="umslrd_showsn <%# Eval("SerialNumber")%>">
				               
				                <td><%# Eval("SerialNumber")%></td>
				                <td><%# Eval("CheckDate")%></td>
                                
			                </tr>
                        </ItemTemplate>
                        <FooterTemplate>
                            </tbody>
                         </table>
                        </FooterTemplate>
                    </asp:repeater>
                    </div>
                </TD>
        </tr>
    </table>
    </div>  

     
   

<script type="text/javascript">


    function uamslr_tr_click(obj) {
        var showclass = obj.attr("showclass");
        $(".umslrd_showsn").css("background-color", "").removeClass("selected")
        var $objshowclass = $("." + showclass);

         try{
            $objshowclass.css("background-color", "Red")
            $(".umslrd_showsn_table").find(".gridScroller").animate({ scrollTop: $objshowclass.offset().top - 200 }, "slow"); //1000是ms,也可以用slow代替
           }
          catch(e)
          {

          }
    }
</script>
</form>
